<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"

      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="layout.xhtml">
        <ui:define name="body">

            <h1 class="title" style="font-size:36px;">CENSEC</h1>
            <p:tabView styleClass="container_24 clearfix" 
                       activeIndex="#{managerSearchActCep.position.indexTab}"> 
                <p:tab title="CEP" id="tab01">
                    <h:form>
                        <div class="grid_24"> 

                            <fieldset>
                                <legend> <h4 style="margin:0 0 10px 0">Relatório CEP</h4></legend>
                                <div class="container_24 clearfix " >
                                    <p:outputLabel value="De " styleClass="grid_3" />
                                    <p:calendar showOn="button" styleClass="grid_9" 
                                                pattern="dd/MM/yyyy" navigator="true"
                                                value="#{managerCensec.dataIni}"/>

                                    <p:outputLabel value=" até " styleClass="grid_1"/>
                                    <p:calendar showOn="button" styleClass="grid_9" 
                                                pattern="dd/MM/yyyy" locale="pt" navigator="true"
                                                value="#{managerCensec.dataFim}"/>
                                </div>
                                <div class="buttonAction">
                                    <p:commandButton value="Emitir" actionListener="#{managerCensec.importTxtEscritura()}"
                                                     icon="ui-icon-disk" styleClass="ui-priority-primary"
                                                     ajax="false" />
                                    <p:commandButton value="Cancelar"  icon="ui-icon-trash" />
                                </div >
                            </fieldset>
                        </div>
                    </h:form>
                </p:tab>
                <p:tab title="CESDI" id="tab02">
                    <h:form>
                        <div class="grid_24"> 

                            <fieldset>
                                <legend> <h4 style="margin:0 0 10px 0">Relatório CESDI</h4></legend>
                                <div class="container_24 clearfix " >
                                    <p:outputLabel value="De " styleClass="grid_3" />
                                    <p:calendar showOn="button" styleClass="grid_9" pattern="dd/MM/yyyy"
                                                value="#{managerCensec.dataIniCesdi}"/>
                                    <p:outputLabel value=" até " styleClass="grid_1"/>
                                    <p:calendar showOn="button" styleClass="grid_9" pattern="dd/MM/yyyy"
                                                value="#{managerCensec.dataFimCesdi}"/>
                                </div>
                                <div class="buttonAction">
                                    <p:commandButton value="Emitir" actionListener="#{managerCensec.importTxtCesdi()}"
                                                     icon="ui-icon-disk" styleClass="ui-priority-primary"
                                                     ajax="false" />
                                    <p:commandButton value="Cancelar"  icon="ui-icon-trash" />
                                </div >
                            </fieldset>
                        </div>
                    </h:form>
                </p:tab>
                <p:tab title="RCTP" id="tab03">
                    <h:form>
                        <div class="grid_24"> 

                            <fieldset>
                                <legend> <h4 style="margin:0 0 10px 0">Relatório RCTO</h4></legend>
                                <div class="container_24 clearfix " >
                                    <p:outputLabel value="De " styleClass="grid_3" />
                                    <p:calendar showOn="button" styleClass="grid_9" pattern="dd/MM/yyyy"
                                                value="#{managerCensec.dataIniRcto}"/>
                                    <p:outputLabel value=" até " styleClass="grid_1"/>
                                    <p:calendar showOn="button" styleClass="grid_9" pattern="dd/MM/yyyy"
                                                value="#{managerCensec.dataFimRcto}"/>
                                </div>
                                <div class="buttonAction">
                                    <p:commandButton value="Emitir" 
                                                     icon="ui-icon-disk" styleClass="ui-priority-primary"
                                                     update="@form" />
                                    <p:commandButton value="Cancelar"  icon="ui-icon-trash" />
                                </div >
                            </fieldset>
                        </div>
                    </h:form>
                </p:tab>
            </p:tabView> 
        </ui:define>
    </ui:composition>
</html>